package com.atwy.order.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderMapper {
    @Insert("insert into order_tbl (user_id, commodity_code, count, money) values (#{userId}, #{commodityCode}, #{count}, #{money})")
    int createOrder(@Param("userId") String userId, @Param("commodityCode") String commodityCode,
                    @Param("count") int count, @Param("money") double money);
}
